package com.j180.bean;

import java.util.List;

public class ClassBean {

    private Integer id;

    private String name;

    private List<StudentBean> studentBeans;

    private TeacherBean teacherBean;

    public ClassBean(Integer id, String name, List<StudentBean> studentBeans, TeacherBean teacherBean) {
        this.id = id;
        this.name = name;
        this.studentBeans = studentBeans;
        this.teacherBean = teacherBean;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<StudentBean> getStudentBeans() {
        return studentBeans;
    }

    public void setStudentBeans(List<StudentBean> studentBeans) {
        this.studentBeans = studentBeans;
    }

    public TeacherBean getTeacherBean() {
        return teacherBean;
    }

    public void setTeacherBean(TeacherBean teacherBean) {
        this.teacherBean = teacherBean;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", studentBeans=" + studentBeans +
                ", teacherBean=" + teacherBean +
                '}';
    }
}
